{% block css %}
<link rel="stylesheet" type="text/css" href="{{baseUrl}}/static/css/header.css" />
{% endblock %}
<div class="header">
  <div class="container">
    <a href="/"><img class="logo" src="{{baseUrl}}/static/img/logo.png" alt="" /></a>
    <div class="nav">
			<a href="/" class="on">首页</a>
			<a href="/about.html">关于我们</a>
			<a href="/product.html">产品中心</a>		
			<a href="/service.html">技术服务</a>
			<a href="/source.html">资源下载</a>
			<a href="/contact.html">联系我们</a>
		</div>
		<div class="right">
			<p>
				<img src="{{baseUrl}}/static/img/ic_phone.png" alt="" />
				联系电话：(+86)177-7270-8857</p>
			<p>
				<img src="{{baseUrl}}/static/img/ic_mail.png" alt="" />
				咨询邮箱：info@hzsxbio.com</p>
		</div>
  </div>
</div>
<script type="text/javascript">
	(function(){
		var curPath = location.pathname;
		var $navs = $('.nav a').removeClass('on');
		if(location.pathname === '/detail.html'){
			$($navs[2]).addClass('on');
			return;
		}
		for(var i = 0; i < $navs.length; i++){
			var $nav = $($navs[i]);
			let path = $nav.attr('href');
			if(path === location.pathname){
				$nav.addClass('on');
			}
		}
	})()
</script>